package com.ruiysoft.crm.feign;

import cn.taroco.common.entity.SysLog;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author fanyl5
 */
@FeignClient(name = "taroco-rbac-service", fallback = SysLogServiceFallbackImpl.class)
public interface SysLogService {
    /**
     * 添加日志
     *
     * @param log 日志实体
     */
    @PostMapping("/log")
    void add(@RequestBody SysLog log);
}
